"""
@Time ： 2022/10/17 10:52
@Auth ： 陈杰 200320501042
@E-mail : 1612845322@qq.com
"""


class Student:
    def __init__(self, name, gender, age):
        self.姓名 = name
        self.性别 = gender
        self.年龄 = age

    def showInfo(self):
        for attr in self.__dict__.items():
            print("{0}:{1}".format(attr[0], attr[1]))


if __name__ == '__main__':
    student1 = Student("张志明", "男", 19)
    student1.showInfo()
    print("类名：{0}".format(student1.__class__))
    print("-" * 56)
    student2 = Student("李春娇", '女', 18)
    student2.爱好 = "唱歌，跳舞"
    student2.showInfo()
